<template>
    <input type="text" v-model="val" :placeholder="placeholder ? placeholder : '请输入'" />
</template>
<script setup>
import { defineProps, defineModel } from 'vue'
const val = defineModel({ defaultValue: '123' })
const props = defineProps({
    placeholder: String,
})
</script>